include(${PROJECT_PATH}/target/tools/cmake/compile_flags.cmake)
# 获取当前目录路径最后一个目录名作为模块名
get_filename_component(current_dir "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE)
get_filename_component(componet_name "${current_dir}" NAME)
message("add componet: " ${componet_name})

file(GLOB SRCS "${CMAKE_CURRENT_LIST_DIR}/src/*.c")

add_library(${componet_name} STATIC ${SRCS})

# 增加模块特定的编译选项
#target_compile_options( )

# 增加模块特定的宏定义
target_compile_definitions(${componet_name} PRIVATE
    -DNOPPU
    -DNOLCP
    -DNOLCC
    -DNOCEB
    -DNOIO
    -DNOEWS
)
# 增加模块特定的include路径
target_include_directories(${componet_name} PRIVATE
    ${CMAKE_CURRENT_LIST_DIR}/../../../app/vc/inc
)
